<script setup lang="ts">
import {inject} from "vue";

/*消费数据*/
const count = inject("count")
const changeCount = inject("changeCount")
const handleAdd = () => {
  changeCount()
}

</script>

<template>
  <div class="children" @click="handleAdd">{{ count }}</div>
</template>
